    //
//  MsgCellModel.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/7.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "MsgCellModel.h"

#import "SysMsgListData.h"

@interface MsgCellModel ()

@property (nonatomic, copy) NSString* title;
@property (nonatomic, copy) NSString* content;
@property (nonatomic, copy) NSString* time;

@end

@implementation MsgCellModel

- (instancetype)initWithData:(id)data cellHeight:(CGFloat)cellHeight
{
    self = [super init];
    if (self)
    {
        _data = data;
        
        /// cellHeight+2（2容错）
        _cellHeight = MHUIScaleValue(cellHeight)+2;
        
        SysMsgListData* sysMsgListData = self.data;
        self.title = sysMsgListData.title;
        self.content = sysMsgListData.content;
        self.time = sysMsgListData.addTime;
    }
    
    return self;
}

@end
